package com.star.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Star
 * @since 2021-04-21
 */
@TableName("tb_user_role")
public class UserRole extends Model<UserRole> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户角色编号
     */
    @TableId(value = "ur_id", type = IdType.AUTO)
    private Integer urId;
    /**
     * 登入编号
     */
    private Integer logId;
    /**
     * 角色编号
     */
    private Integer roleId;


    public Integer getUrId() {
        return urId;
    }

    public void setUrId(Integer urId) {
        this.urId = urId;
    }

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    protected Serializable pkVal() {
        return this.urId;
    }

    @Override
    public String toString() {
        return "UserRole{" +
        ", urId=" + urId +
        ", logId=" + logId +
        ", roleId=" + roleId +
        "}";
    }
}
